#include <stdio.h>

//公倍数是指一个数同时是两个或多个数的倍数
int main(int argc, char *argv[]) {

    int a, b, c;
    scanf("%d %d", &a, &b);
    c = 0;

    for (size_t i = 1; i < 99999; i++)
    {
        if(i%a==0&&i%b==0){
            c = i;
            break;
        }
    }

    printf("%d", c);

    return 0;
}